package elevatorsimulator;

/**
 * Creates the Elevator object
 */
public class Elevator {

    String direction;         // either 'true' up or 'false' down
    int desiredFloor;       //some number between min/max floor
    int currentFloor;       //the elevators current floor as integer

    /**
     * Moves the elevator up
     */
    public void moveUp(int currentFloor) {
        setCurrentFloor(currentFloor + 1);
    }

    /**
     * Moves the elevator down
     */
    public void moveDown(int currentFloor) {
        setCurrentFloor(currentFloor - 1);
    }

    /**
     * Elevator Constructor sets current floor to 1 initially
     */
    public Elevator() {
        currentFloor = 1;
    }

    /**
     * Returns the elevator directional character
     */
    public String getDirection() {
        return direction;
    }

    /**
     * Sets the elevator directional character
     */
    public void setDirection(String direction) {
        this.direction = direction;
    }

    /**
     * Returns the desired floor
     */
    public int getDesiredFloor() {
        return desiredFloor;
    }

    /**
     * Sets the desired floor
     */
    public void setDesiredFloor(int desiredFloor) {
        this.desiredFloor = desiredFloor;
    }

    /**
     * Returns current floor
     */
    public int getCurrentFloor() {
        return currentFloor;
    }

    /**
     * Sets the current floor
     */
    public void setCurrentFloor(int currentFloor) {
        this.currentFloor = currentFloor;
    }


}
